

package com.api.oa.services;

import com.api.oa.model.entity.YQAssessment;
import com.api.oa.model.entity.YQRequest;
import com.api.oa.model.vo.OaOrgTreeVO;
import com.api.oa.model.vo.YQRequestVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface YQAssessmentService {


    Integer add(YQAssessment entity);


    void remove(Long id);


    Integer update(YQAssessment org);


    PageInfo<YQAssessment> list(String pid, Integer pageIndex, Integer pageSize);


    YQAssessment one(String id);

    /**
     * 机构测评
     *
     * @param entity
     * @return
     */
    Integer saveByIns(YQAssessment entity) throws Exception;

    /**
     * 政府复评
     *
     * @param entity
     * @return
     */
    YQRequestVO saveByGov(YQAssessment entity) throws Exception;

    /**
     * 直接提交
     *
     * @param id
     * @return
     */
    Integer submit(String id);

    /**
     * 直接提交 政府
     *
     * @param id
     * @return
     */
    Integer submitGov(String id);
}
